π Node [[spaces to tabs conversion]]
β³ π Resource @flancian/spaces to tabs conversion
An Agora node is made up of contributions whose topic matches the current location.
-
To go from spaces to tabs in Python code:
-
for i in *py; do unexpand -t 4 $i | sponge $i; done
-
To go from tabs to spaces in Python code:
for i in *py; do expand -t 4 $i | sponge $i; done
-
[[pep8]] is against tabs in Python code. We are currently experimenting with using tabs in [[agora server]] regardless.
-
In .vimrc you might need to add:
- Update: I’m reverting this experiment, I think it would impose too large of a burden on new contributors at this point, as both vim and python seem to assume you want to follow [[pep8]]. The [[google style guide]] also recommends four spaces even though it overrides some other aspects of [[pep8]], so this is pretty widely the standard.
Rendering context...